package com.netease.c;

import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;

public class b
{
  public static final String a = "utf-8";
  static final String b = "!#$%&'()*+,-./:;=?@[\\]^_`{|}~";
  private static final int c = 7;

  private static byte a(int paramInt)
  {
    int i = paramInt & 0xF;
    if (i < 10);
    for (int j = (byte)(i + 48); ; j = (byte)(97 + (i - 10)))
      return j;
  }

  public static String a(String paramString, int paramInt)
  {
    int i;
    if (a(paramString, paramInt, "http://"))
      i = "http://".length();
    int k;
    while (true)
    {
      int j = paramString.length();
      while (true)
      {
        if (paramInt + i >= j)
          break label164;
        k = paramString.charAt(paramInt + i);
        if (((k < 65) || (k > 90)) && ((k < 97) || (k > 122)) && ((k < 48) || (k > 57)))
          break;
        i++;
      }
      if (a(paramString, paramInt, "www."))
      {
        i = "www.".length();
        continue;
      }
      if (a(paramString, paramInt, "wap."))
      {
        i = "wap.".length();
        continue;
      }
      if (!a(paramString, paramInt, "https://"))
        break;
      i = "https://".length();
    }
    label164: for (String str = null; ; str = paramString.substring(paramInt, i + paramInt))
    {
      return str;
      if ("!#$%&'()*+,-./:;=?@[\\]^_`{|}~".indexOf(k) < 0)
        continue;
      i++;
      break;
    }
  }

  public static String a(String paramString1, String paramString2, String paramString3)
  {
    int i = 0;
    StringBuffer localStringBuffer = new StringBuffer();
    for (int j = paramString1.indexOf(paramString2, 0); j >= 0; j = paramString1.indexOf(paramString2, i))
    {
      localStringBuffer.append(paramString1.substring(i, j));
      localStringBuffer.append(paramString3);
      i = j + paramString2.length();
    }
    if (i < paramString1.length())
      localStringBuffer.append(paramString1.substring(i));
    return localStringBuffer.toString();
  }

  public static Hashtable a(Hashtable paramHashtable)
  {
    if (paramHashtable != null)
    {
      localHashtable = new Hashtable();
      Enumeration localEnumeration = paramHashtable.keys();
      while (localEnumeration.hasMoreElements())
      {
        Object localObject = localEnumeration.nextElement();
        localHashtable.put(localObject, paramHashtable.get(localObject));
      }
    }
    Hashtable localHashtable = null;
    return localHashtable;
  }

  public static Vector a(String paramString1, String paramString2)
  {
    Vector localVector;
    if ((paramString1 == null) || (paramString1.length() <= 0) || (paramString2 == null) || (paramString2.length() <= 0))
      localVector = null;
    while (true)
    {
      return localVector;
      localVector = new Vector();
      int j;
      for (int i = 0; ; i = j + paramString2.length())
      {
        j = paramString1.indexOf(paramString2, i);
        if (j == -1)
          break;
        if (localVector == null)
          localVector = new Vector();
        localVector.addElement(paramString1.substring(i, j));
      }
      if (i >= paramString1.length())
        continue;
      localVector.addElement(paramString1.substring(i));
    }
  }

  public static void a(Vector paramVector)
  {
    int i = 0;
    if ((paramVector != null) && (paramVector.size() > 0))
    {
      Object[] arrayOfObject1 = new Object[paramVector.size()];
      Object[] arrayOfObject2 = new Object[paramVector.size()];
      paramVector.copyInto(arrayOfObject1);
      paramVector.copyInto(arrayOfObject2);
      a(arrayOfObject1, arrayOfObject2, 0, arrayOfObject1.length, 0);
      while (i < arrayOfObject2.length)
      {
        paramVector.setElementAt(arrayOfObject2[i], i);
        i++;
      }
    }
  }

  private static void a(Object[] paramArrayOfObject, int paramInt1, int paramInt2)
  {
    Object localObject = paramArrayOfObject[paramInt1];
    paramArrayOfObject[paramInt1] = paramArrayOfObject[paramInt2];
    paramArrayOfObject[paramInt2] = localObject;
  }

  private static void a(Object[] paramArrayOfObject1, Object[] paramArrayOfObject2, int paramInt1, int paramInt2, int paramInt3)
  {
    int i = paramInt2 - paramInt1;
    if (i < 7)
      for (int i5 = paramInt1; i5 < paramInt2; i5++)
        for (int i6 = i5; (i6 > paramInt1) && (((Comparable)paramArrayOfObject2[(i6 - 1)]).compareTo(paramArrayOfObject2[i6]) > 0); i6--)
          a(paramArrayOfObject2, i6, i6 - 1);
    int j = paramInt1 + paramInt3;
    int k = paramInt2 + paramInt3;
    int m = j + k >> 1;
    a(paramArrayOfObject2, paramArrayOfObject1, j, m, -paramInt3);
    a(paramArrayOfObject2, paramArrayOfObject1, m, k, -paramInt3);
    if (((Comparable)paramArrayOfObject1[(m - 1)]).compareTo(paramArrayOfObject1[m]) <= 0)
    {
      System.arraycopy(paramArrayOfObject1, j, paramArrayOfObject2, paramInt1, i);
      return;
    }
    int n = m;
    label155: int i3;
    int i4;
    if (paramInt1 < paramInt2)
    {
      if ((n < k) && ((j >= m) || (((Comparable)paramArrayOfObject1[j]).compareTo(paramArrayOfObject1[n]) > 0)))
        break label232;
      int i1 = j + 1;
      paramArrayOfObject2[paramInt1] = paramArrayOfObject1[j];
      int i2 = n;
      i3 = i1;
      i4 = i2;
    }
    while (true)
    {
      paramInt1++;
      j = i3;
      n = i4;
      break label155;
      break;
      label232: i4 = n + 1;
      paramArrayOfObject2[paramInt1] = paramArrayOfObject1[n];
      i3 = j;
    }
  }

  public static boolean a(String paramString)
  {
    if ((paramString == null) || (paramString.length() == 0));
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean a(String paramString1, int paramInt, String paramString2)
  {
    int i = paramString2.length();
    int k;
    if (paramInt + i > paramString1.length())
      k = 0;
    while (true)
    {
      return k;
      for (int j = 0; ; j++)
      {
        if (j < i)
        {
          int m = paramString1.charAt(paramInt + j);
          if ((m >= 65) && (m <= 90))
            m += 32;
          if (m == paramString2.charAt(j))
            continue;
        }
        if ((j != i) || (j <= 0))
          break label95;
        k = 1;
        break;
      }
      label95: k = 0;
    }
  }

  public static byte[] a(byte[] paramArrayOfByte)
  {
    if (paramArrayOfByte == null);
    byte[] arrayOfByte;
    for (Object localObject = null; ; localObject = arrayOfByte)
    {
      return localObject;
      arrayOfByte = new byte[paramArrayOfByte.length << 1];
      for (int i = 0; i < paramArrayOfByte.length; i++)
      {
        arrayOfByte[(i << 1)] = a(paramArrayOfByte[i] >> 4);
        arrayOfByte[(1 + (i << 1))] = a(paramArrayOfByte[i]);
      }
    }
  }

  public static String b(String paramString)
  {
    if (paramString == null)
      paramString = "";
    return paramString;
  }

  public static Vector b(Hashtable paramHashtable)
  {
    Enumeration localEnumeration = paramHashtable.elements();
    Vector localVector = new Vector();
    while (localEnumeration.hasMoreElements())
      localVector.addElement(localEnumeration.nextElement());
    return localVector;
  }

  public static String c(String paramString)
  {
    if ((!a(paramString)) && (paramString.toLowerCase().equals("null")))
      paramString = null;
    return paramString;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.c.b
 * JD-Core Version:    0.6.0
 */